package com.spark.lola.logistics.request;

import com.baomidou.mybatisplus.annotation.TableField;
import com.spark.lola.logistics.entity.ExpensesDetail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @author: Zhi-peng wang
 * @date: 2020/06/04 12:07
 **/
@Getter
@Setter
@ApiModel(value = "ExpensesInfoUpdateRequest", description = "修改货运支出单")
public class ExpensesInfoUpdateRequest {

    @ApiModelProperty(name = "id", value = "id", notes = "必填")
    private Long id;

    @ApiModelProperty(name = "returnOrderId", value = "回头车运输单id")
    private Long returnOrderId;

    @ApiModelProperty(name = "returnOrderNo", value = "回头车运输单号")
    private String returnOrderNo;

    @ApiModelProperty(name = "nowMileage", value = "本次里程数（km）")
    private Integer nowMileage;

    @ApiModelProperty(name = "fuelConsumption", value = "油耗（L）")
    private BigDecimal fuelConsumption;

    @ApiModelProperty(name = "fuelPrice", value = "燃油单价")
    private BigDecimal fuelPrice;

    @ApiModelProperty(name = "borrowingAmount", value = "借款金额")
    private BigDecimal borrowingAmount;

    @ApiModelProperty(name = "refundableFee", value = "应退费用")
    private BigDecimal refundableFee;

    @ApiModelProperty(name = "expensesDetailList", value = "支出单详情集合")
    @TableField(exist = false)
    private List<ExpensesDetail> expensesDetailList = new ArrayList<>();

}
